package me.feng.core
{
	import me.feng.debug.assert;
	import me.feng.utils.ClassUtils;


	/**
	 *
	 * @author feng 2015-12-7
	 */
	public class NamedAssetTester
	{

		[Test]
		public function testName():void
		{
			var namedAsset:NamedAsset = new NamedAsset();
			assert(namedAsset.name.indexOf(ClassUtils.getDefaultName(NamedAsset)) == 0);

			var namedAssetA:NamedAssetA = new NamedAssetA();
			assert(namedAssetA.name.indexOf(ClassUtils.getDefaultName(NamedAssetA)) == 0);

			var namedAssetAA:NamedAssetA = new NamedAssetA();
			assert(namedAssetAA.name.indexOf(ClassUtils.getDefaultName(NamedAssetA)) == 0);

			assert(namedAssetA.name != namedAssetAA.name);
		}
	}
}
import me.feng.core.NamedAsset;

class NamedAssetA extends NamedAsset
{

}
